﻿using Acme.SmartWMS.BasicInfo.IClassificationService.DTO;
using Acme.SmartWMS.DataBasic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace Acme.SmartWMS.BasicInfo.IClassificationService
{
    public interface IClassificationAppService:IApplicationService
    {
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="item"></param>
        /// <returns></returns>
        Task<int> Add(DictItemInsertDTO itemdto);

        /// <summary>
        /// 查询显示
        /// </summary>
        /// <param name="name"></param>
        /// <param name="limit"></param>
        /// <param name="page"></param>
        /// <returns></returns>
        Task<PagedResult<DictItem>> GetDictItem(string? name, int limit, int page);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> Del(int id);

        /// <summary>
        /// 查询单个
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<DictItemSelDTO> SelSing(int id);

        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="itemdto"></param>
        /// <returns></returns>
        Task<int> Upd(DictItemUpdateDTO itemdto);
    }
}
